<!DOCTYPE html>

<?php
include_once("model/Cliente.php");
include_once("dao/LoginDao.php");
include_once("model/Login.php");
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        /* try {

          $login = new Login();
          $login->setId(1);
          $login->setLogin('GabrielAlmeidaaaa');
          $login->setPasswd('1234567');


          $LoginDao = new LoginDao();
          $result = $LoginDao->autentica($login);
          if ($result) {
          echo "Deu certo!";
          } else {
          echo "Deu merda!";
          }
          } catch (PDOException $exc) {
          echo $exc->getTraceAsString();
          }

          } */

        try {
            $login = new Login();
            $logindao = new LoginDao();

            $login->setId(6);
            $result = $logindao->delete($login);
            if ($result) {
                echo "Deu certo o delete!";
            }
        } catch (PDOException $exc) {
            echo $exc->getTraceAsString();
        }
        ?> 


    </body>
</html>
